import request from '../../utils/request'


export async function query({buyerId, page}) {
    return request(apiPath.zbtim + "/api/payer", {
        method: 'get',
        data: {buyerId, page: page.page, size: page.size}
    });
}

export async function save(data) {
    return request(apiPath.zbtim + "/api/payer", {
        method: 'post',
        data
    });
}


export async function update(data) {
    return request(apiPath.zbtim + "/api/payer", {
        method: 'put',
        data
    });
}

export async function get({id}) {
    return request(apiPath.zbtim + "/api/payer/"+ id, {
        method: 'get'
    });
}

export async function remove({id}) {
    return request(apiPath.zbtim + "/api/payer/"+ id, {
        method: 'delete'
    });
}